
<head>
<meta charset="UTF-8">
</head>
<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
    <!-- BEGIN PAGE HEADER-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN PAGE TITLE & BREADCRUMB-->
            <h3 class="page-title">财富 - GPS <small id="displayTitle"></small>
        </h3>
            <ul class="breadcrumb">
                <li><a href="#"><i class="icon-home"></i></a><span class="divider"></span></li>
                <li><a href="#">个人说明</a> <span class="divider">&nbsp;</span></li>

        </ul> <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div> <!-- END PAGE HEADER--> <!-- Begin user profile  -->
    <div class="row-fluid">
        <div class="span12">
            <div class="widget">
                <div class="widget-title">
                    <h4><i class="icon-user"></i>个人说明</h4> <span class="tools"> <a href="javascript:;" class="icon-chevron-down"></a> <a href="javascript:;" class="icon-remove"></a>
                </span>
            </div>
                <div class="widget-body">
                    <div class="span3">
                        <div class="text-center profile-pic"><img src="img/profile-pic.jpg" alt=""></div>


                        <div class="metro-overview green-color clearfix">

                            <div class="details">
                                <div class="numbers" id="riskscore"></div>
                                <div class="title">风险定位</div>

                        </div>
                    </div>


                        <div class="metro-overview blue-color clearfix">

                            <div class="details">
                                <div class="numbers" id="financialscore"></div>
                                <div class="title">财富定位</div>

                        </div>
                    </div>
                        <div class="metro-overview purple-color clearfix">

                            <div class="details">
                                <div class="numbers" id="finalscore"></div>
                                <div class="title">综合定位</div>

                        </div>
                    </div>
                        <button id="newScore" class="btn btn-primary"><i class="icon-plus icon-white"></i> 新评分</button>


                </div> <!-- About is for left panel -->
                    <div class="span6">
                        <h4 id="displaynameh4"><br>
                        <small id="career"></small></h4>
                        <table class="table table-borderless">
                            <tbody>

                                <tr>
                                    <td class="span2">所在城市 :</td>
                                    <td id="city"></td>
                            </tr>
                                <tr>
                                    <td class="span2">性别 :</td>
                                    <td id=gender></td>
                            </tr>
                                <tr>
                                    <td class="span2">年龄 :</td>
                                    <td id="age"></td>
                            </tr>
                                <tr>
                                    <td class="span2">电子邮件:</td>
                                    <td id="email"></td>
                            </tr>
                                <tr>
                                    <td class="span2">用户等级 :</td>
                                    <td id="level"></td>
                            </tr>
                                <tr>
                                    <td class="span2">相关标签 :</td>
                                    <td id="tags"></td>
                            </tr>
                        </tbody>
                    </table>


                </div>
                    <div class="span3">
                        <h4>目标</h4>
                        <div data-desktop="span12" data-tablet="span12" class="span12 responsive">
                            <div class="metro-overview green-color clearfix">
                                <div class="display"><i class="icon-fighter-jet"></i></div>
                                <div class="details">
                                    <div class="numbers" id="goaltype"></div>
                                    <div class="title" id="goaldetails"></div>
<br> 当前目标详细达成情况请关注<strong><a class="" href="#" id="userDashboard">财富导航</a></strong>
                                
                            </div>
                        </div>
                    </div>
                        <button id="newGoal" class="btn btn-primary"><i class="icon-plus icon-white"></i> 建立新目标</button>

                </div>
                    <div class="space5"></div>
            </div>
        </div>
    </div>
</div> <!-- End user profile discription -->
</div>

<script>
    $(document).ready(function(){	
    	

var displayname=$("#displayname").val();   	
    	var id=$("#id").val();    
    	$("#displayTitle").append(displayname+"的财富导航");  	
        $("#displaynameh4").append(displayname);
    	    	
       var  getGoalURL="/getGoal/"+id;
       var getFinalProURL="/getFinalPro/"+id;
       var getUserProURL ="";
    	
    	$.get(getGoalURL,function(data){
    		var goaltype=data.goaltype;
    		var asofdate=data.asofdate;
    		var timeframe=data.timeframe;
    		var expectedamount=data.expectedamount;
    		var startamount=data.startamount;
    		var incrementalamount=data.incrementalamount;    
    		
    		$("#goaltype").append("当前正在进行目标为 - "+goaltype);
    		$("#goaldetails").append("为达到该目标，您计划自"+asofdate+  "后"+ timeframe+
    				"年拥有"+expectedamount+"元。您拥有起始资金"+startamount +"元,每年计划追加资金"+incrementalamount+"元。");
    		
    	  });
    	
$.get(getFinalProURL,function(data){
    		
    		var riskscore = data.riskscore;
    		var financialscore=data.financialscore;
    		var finalscore=data.finalscore;
    		
    		$("#riskscore").append(riskscore);
    		$("#financialscore").append(financialscore);
    		$("#finalscore").append(finalscore);   		
    			
    	  });
    	  
$.get(getUserProURL,function(data){
	
	var id1=data.id;
	var gender=data.goalstatus;
		
  });
    	
    	
    	
    	
    	}); 
    
    $("#newGoal").click(function(){   	
    	
    	
    	$("#pageContainer").remove();
    	$("#main-content").load("pages/newGoalBody.html");
    }); 
    
 $("#newScore").click(function(){
    	
    	$("#pageContainer").remove();
    	$("#main-content").load("pages/newScoreBody.html");
    });  
    
   

    </script>

<!-- END PAGE CONTAINER-->